建立與更新 Active Directory 網域
產品版本:10.11
最後修改日期:2024年7月31日
建立並更新 AD 網域。
注意!!!
若 NAKIVO Backup & Replication 是以多租戶模式安裝的,則僅有主租戶可使用 API。
終點
https://<Director_IP_address>:4443/c/router
請求範例
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie cookies.txt \
--data '{
"action": "ADDomainManagement",
"method": "saveDomain",
"data": [
null,
{
"domainName": "adtestvn.local",
"preferredDc": "10.30.30.1",
"username": "administrator",
"password": "password",
"integratedGroups": "users,domain users",
"refreshInMinutes": 60,
"changeExistingPreferredDc": true
}],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域 |
類型 |
值(們) |
|---|---|---|
|
|
字串 |
|
|
|
字串 |
|
|
|
陣列 |
由兩個元素組成的陣列:
|
|
|
字串 |
|
|
|
整數 |
|
資料
|
領域 |
價值 |
Description |
|---|---|---|
|
|
字串 |
AD 網域 |
|
|
字串 |
首選 DC/主機(可選) |
|
|
字串 |
使用者名稱 |
|
|
字串 |
密碼 |
|
|
字串 |
要整合的 AD 群組清單,以逗號分隔,例如: |
|
|
int
|
系統每隔多少分鐘(以分鐘為單位)會從 AD 擷取資料 |
|
|
布林值 |
允許從現有的舊設定中刪除舊資料。 只有當您變更 中的「首選 DC」值,但保留「網域名稱」中的值時,這才適用。 |
回應範例
{
"action": "ADDomainManagement",
"method": "saveDomain",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": null
}
回應欄位
|
領域 |
類型 |
值(們) |
|---|---|---|
|
|
字串 |
|
|
|
字串 |
|
|
|
字串 |
|
|
|
字串 |
|
|
|
null |
|
where
|
null |
|
cause
|
null |
|
data
|
null | 總是 null:此方法不會傳回任何資料。上方的回應範例顯示儲存成功 |